<table style="width: 100%;" cellpadding="4" cellspacing="0">
    <tr>
        <td class="border2">
            <table style="width: 100%;" class="mainmenu5" cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <td width="7"><img src="design/pic/spacer.gif" class="sqr1" alt="" height="7" width="7" /></td>
                    <td class="block_header">{$sValue|escape|clean}</td>
                </tr>
            </table>
            <table width="100%" style="padding:8px;" border="0" cellspacing="0" cellpadding="0">
                {if $aData}
                <tr>
                    {if $sType == "musician"}
                    <td class="block_header">{language text="musician"}</td>
                    <td></td>
                    {elseif $sType == "album"}
                    <td></td>
                    <td class="block_header">{language text="musician"}</td>
                    <td class="block_header">{language text="album"}</td>
                    <td></td>
                    {elseif $sType == "song"}
                    <td class="block_header">{language text="song"}</td>
                    <td class="block_header">{language text="musician"}</td>
                    <td></td>
                    {/if}
                </tr>
                {/if}
{foreach from=$aData item=item}
                {if $sType == "musician"}
                <tr>
                    <td>
                        <a class="link_item" href="{url link='public.music.musician' id=$item.musician_id}">{$item.musician_name|clean}</a>
                    </td>
                </tr>
                {elseif $sType == "album"}
                <tr>
                    <td valign="middle">
                        <a href="{url link='public.music.album' id=$item.album_id}">{img src="`$sPicPath``$item.album_id`.jpg" src_def="design/pic/noimage_100.jpg" align="center"}</a>
                    </td>
                    <td>
                        <a class="link_item" href="{url link='public.music.album' id=$item.album_id}">{$item.album_title|clean}</a>
                    </td>
                    <td>
                        <a class="link_item" href="{url link='public.music.musician' id=$item.musician_id}">{$item.musician_name|clean}</a>
                    </td>
                    {if $bIsStaff}
                    {/if}
                    <td>
                        <a class="link_action" href="{url link='public.music.musician' id=$item.musician_id falbum=$item.album_id}">[ {language text="add_to_favorites_459"} ]</a>
                    </td>
                </tr>
                {else}
                <tr>
                    <td>
                        <a class="link_item" href="{url link='public.music.song' id=$item.song_id}">{$item.song_title|clean}</a>
                    </td>
                    <td>
                        <a class="link_item" href="{url link='public.music.musician' id=$item.musician_id}">{$item.musician_name|clean}</a>
                    </td>
                    {if $bIsStaff}
                    {/if}
                    <td>
                        <a class="link_action" href="{url link='public.music.song' id=$item.song_id makefavorite=1'}">[ {language text="add_to_favorites_459"} ]</a>
                    </td>
                </tr>
                {/if}
{foreachelse}
                <tr>
                    <td>
                        <div class="message_info">
                        {language text="no_data_found"}
                        </div>
                    </td>
                </tr>
{/foreach}
            </table>
        </td>
    </tr>
</table>